package com.qd.pay.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;


/**
 * @author sjk
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_order_report_notify")
public class OrderReportNotify extends Model<OrderReportNotify> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "nid", type = IdType.ASSIGN_ID)
    private String nid;

    @TableField("order_id")
    private String orderId;

    @TableField("out_trade_no")
    private String outTradeNo;

    @TableField("third_party_order")
    private String thirdPartyOrder;

    @TableField("notify_body")
    private String notifyBody;

    @TableField("notify_url")
    private String notifyUrl;

    @TableField("add_time")
    private LocalDateTime addTime;

    public void freeData() {
        this.nid = null;
        this.orderId = null;
        this.outTradeNo = null;
        this.thirdPartyOrder = null;
        this.notifyBody = null;
        this.addTime = null;
        this.notifyUrl = null;
    }

}
